package API003;

public class MathDemo {
    public static void main(String[] args) {
        System.out.println(Math.abs(-5));
        System.out.println(Math.ceil(-3.3));
        System.out.println(Math.floor(-3.3));
        System.out.println(Math.max(4,5));
        //
        int num = 0;
        for(int i = (int)Math.ceil(-10.8);i <= (int)Math.floor(5.9);i++){

            if(Math.abs(i) > 6 || Math.abs(i) <= Math.floor(2.1)){
                num++;
            };
        }
        System.out.println(num);
    }
}
